class PeerRecord
  attr_acessor :peer_table, :connection_attempts, :connection_sucesses, :name, :ip, :port, :path
  def initialize(p_table = nil, ip_add = nil, port_num = nil, name = nil, con_attempts = 0, con_successes = 0)
    @peer_table = p_table
    @ip = ip_add
    @port = port_num
    @connection_attempts = con_attempts
    @connection_sucesses = con_successes
    @name = name
  end
  def connection(success=true)
    connection_attempts+=1
    connection_sucesses+=1 if success
  end
end
